<%-- 
    Document   : Eliminar_Departamento
    Created on : 23/09/2011, 12:14:23
    Author     : ad
--%>


<% response.setHeader("Pragma", "no-cache");%>
<% response.setHeader("Cache-Control", "no-store");%>
<%response.setHeader("Cache", "no-cache");%>
<% response.setDateHeader("Expires", 0);%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="clases.Conexion"%>
<%@ page session="true" %>
<%
            String usuario = "";
            HttpSession sesionOk = request.getSession();
            if (sesionOk.getAttribute("Usuario") == null) {
%>
<jsp:forward page="index.jsp">
    <jsp:param name="error" value="Identifiquese primero"/>
</jsp:forward>
<%            } else {
                usuario = (String) sesionOk.getAttribute("Usuario");
            }
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Crear Nuevo Usuario</title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <link href="style.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="js/script.js"></script>
        <script type="text/javascript" src="js/cufon-yui.js"></script>
        <script type="text/javascript" src="js/arial.js"></script>
        <script type="text/javascript" src="js/cuf_run.js"></script>
        <meta http-equiv=="Pragma" content="no-cache"/>
        <meta http-equiv="Expires" content="-1"/>
        <meta http-equiv=="Cache-Control" content="no-store"/>
        <meta http-equiv="Cache" content="no-cache"/>
        <script lenguaje="JavaScript">
            if(window.history.forward(1) != null)
                window.history.forward(1);
        </script>
    </head>
    <body>
        <div class="main">
            <div class="header">
                <div class="header_resize">
                    <div class="logo">
                        <h1><a href="#"><span>Siempre</span> a su lado</a></h1>
                    </div>
                    <div class="menu_nav">
                        <ul>
                            <%-- <li><a href="index.jsp">Home</a></li>
                            <li><a href="about.jsp">About Us</a></li> --%>
                            <li> <a href="Departamento_abc.jsp">Departamento</a></li>
                            <li> <a href="gerente.jsp">Principal</a></li>
                            <li> <a href="cerrarsesion.jsp">Cerrar sesión</a></li>
                        </ul>
                    </div>
                    <div class="clr"></div>
                    <div class="hbg"><img src="images/header_images.jpg" width="400" height="275" alt="" class="fl" />
                        <div class="info fl">
                            <h3>Banco Central <br />
                                Uniendo al mundo </h3>
                        </div>
                        <div class="clr"></div>
                    </div>
                    <div class="clr"></div>
                </div>
            </div>
            <div class="content">
                <div class="content_resize">
                    <div class="mainbar">
                        <div class="article">
                            <h2><span>Eliminar Departamento</span></h2>
                            <%
                                        if (request.getParameter("error") != null) {
                                            out.println(request.getParameter("error"));
                                        }
                            %>
                            <div class="clr"></div>
                        </div>
                        <div class="article">
                            <div class="clr"></div>
                            <form action="<%=Conexion.localhost + "EliminarDepartamento"%>" method="post">
                                <ol>
                                    <li>
                                        <select name="delete_nombre_depto">
                                            <%
                                                        /**
                                                         *devolver la lista de los departamentos
                                                         */
                                                        Conexion mis = new Conexion();
                                                        String t = mis.devolverDepartamentosListaSeleccion();
                                                        out.println(t);
                                            %>
                                        </select>
                                        <br><br><br>
                                    </li>
                                    <li>
                                        <input type="submit" value="Eliminar Departameto" align="center" ><br><br>
                                        <HR>
                                        <HR width="80%">
                                        <HR width="60%">
                                        <HR width="40%">
                                        <HR width="20%">
                                        <div class="clr"></div>
                                    </li>
                                </ol>
                            </form>
                        </div>
                    </div>
                    <div class="sidebar">
                        <div class="gadget">
                            <h2 class="star"><span>Opcion</span> Menu</h2>
                            <div class="clr"></div>
                            <ul class="sb_menu">
                                <li><a href="cerrarsesion.jsp">Cerrar Sesion</a></li>
                                <li><a href="Departamento_Nuevo.jsp">Crear Nuevo Departamento</a></li>
                                <li class="active"><a href="Eliminar_Departamento.jsp">Eliminar Departamento</a></li>
                                <li><a href="Editar_Departamento.jsp">Editar Departamento</a></li>
                            </ul>
                        </div>

                    </div>
                    <div class="clr"></div>
                </div>
            </div>

            <div class="footer">
                <div class="footer_resize">
                    <p class="lf">&copy; Copyright <a href="#">MyWebSite</a>.</p>
                    <p class="rf">Layout by I <a href="http://www.iwebsitetemplate.com/">Website Templates</a></p>
                    <div class="clr"></div>
                </div>
            </div>
        </div>
    </body>
</html>
